import request from '@/utils/request'

// 查询归档位置列表
export function listArchive_location(query) {
  return request({
    url: '/system/archive_location/list',
    method: 'get',
    params: query
  })
}

// 查询归档位置详细
export function getArchive_location(id) {
  return request({
    url: '/system/archive_location/' + id,
    method: 'get'
  })
}

// 新增归档位置
export function addArchive_location(data) {
  return request({
    url: '/system/archive_location',
    method: 'post',
    data: data
  })
}

// 修改归档位置
export function updateArchive_location(data) {
  return request({
    url: '/system/archive_location',
    method: 'put',
    data: data
  })
}

// 删除归档位置
export function delArchive_location(id) {
  return request({
    url: '/system/archive_location/' + id,
    method: 'delete'
  })
}
